package com.xxx.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Products服务openfeign客户端
 * @author blijojo
 * @date 2021/5/30
 */
@FeignClient("PRODUCTS")
public interface ProductClient {
    /**
     * 获取id
     * @param id id
     * @return string
     */
    @GetMapping("/product/test1")
    String test1(@RequestParam("id") Integer id);

}
